package edu.mju.builder;

/**
 * @Author: wyp
 * @Date: 2020/9/19 22:50
 */
public class TestTicket {
    public static void main(String[] args) {
        TicketHelper helper = new TicketHelper();
        helper.buildAdult("成人信息：王大锤");
        helper.buildChilderForSeat("有座儿童：王小锤");
        helper.buildChilderNoSeat("无座儿童：王小小锤");
        helper.buildElder("老人信息：王大爷");
        helper.buildSoldier("军人信息：王爱军");
        Object ticket = TicketBuilder.builder(helper);
    }
}
